//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package com.hustcad.plm.pdm.preview.enums;

import com.ty.basic.exception.message.ErrorCodeEnum;

public enum PreviewErrorCodeEnum implements ErrorCodeEnum {
    PREVIEW_REQUEST_PARAM_IS_EMPTY(buildCode(10001), "typlm_preview.the.preview.request.param.is.empty"),
    PREVIEW_FILE_NOT_FOUND(buildCode(10002), "typlm_preview.the.preview.file.not.found"),
    PREVIEW_FILE_NOT_SUPPORT_ONLINE_PREVIEW(buildCode(10003), "typlm_preview.the.file.type.not.support.online.preview"),
    PREVIEW_FILE_ID_NOT_EXIST(buildCode(10004), "typlm_preview.the.file.id.not.exist"),
    PREVIEW_CONSTANT_EMPTY(buildCode(10005), "typlm_preview.constant.EMPTY"),
    PREVIEW_CURRENTLY_SELECTED_NODE_NOT_EXIST(buildCode(10006), "typlm_preview.the.currently.selected.node.not.exist"),
    PREVIEW_CORRESPONDING_SELECTED_NODE_NOT_ASSOCIATED_DRAWING(buildCode(10007), "typlm_preview.the.currently.selected.node.not.associated.drawing"),
    PREVIEW_CURRENTLY_ENGINEERING_DRAWING_NOT_LIGHTWEIGHT(buildCode(10008), "typlm_preview.the.currently.engineering.drawing.not.lightweight");

    private String code;
    private String msg;

    public String getMsg() {
        return this.msg;
    }

    private PreviewErrorCodeEnum(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public String getCode() {
        return this.code;
    }

    private static String buildCode(Integer codeNumber) {
        return "typlm_preview_" + codeNumber;
    }
}
